package net.lunar.plugin.auto_plugin;

import java.io.File;
import java.util.List;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;

@Mojo( name = "touch"
,defaultPhase= LifecyclePhase.PREPARE_PACKAGE
)
public class AutoMojo extends AbstractMojo {
    @Parameter( defaultValue = "${project.build.directory}", property = "outputDir", required = true )
    private File outputDirectory;
    
    @Parameter(property = "pkg", required = true )
    private String pkg;
    
    @Parameter(property = "greeting", required = true)
    private List<String> greeting;

    public void execute() throws MojoExecutionException {
    	System.out.println("============================================");
    	System.out.println("plugin-->" + outputDirectory);
    	System.out.println("pkg-->" + pkg);
    	System.out.println("greetings -->" + this.greeting);
    	System.out.println("============================================");
    }
}
